-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GEIQ: Afficher le diagnostic GEIQ d'une candidature acceptée dans le passé [GEN-1701] #4456
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je vois que la vue itou.apply.views.process_views.details_for_prescriber
se base sur les diags d’éligibilité GEIQ actuels du candidat. Ne devrait-elle pas se baser sur le diagnostic de la candidature (job_app.geiq_eligibility_diagnosis
) s’il existe ?
Peut-être à mutualiser avec _get_geiq_eligibility_diagnosis_for_company
qui est utilisé pour le candidat et l’entreprise qui l’embauche ?
Alors ta remarque sur _get_geiq_eligibility_diagnosis_for_company est pertinante, mais je vois que la logique entre les vue est différentes :
Par contre je suis en train de regarder les tests de cette vue, et c'est à revoir entièrement, tous les tests regardent la vue "details_for_company" même quand il y a écrit "as_prescriber" dans le nom du test. Je sais ce que je peux faire ce matin 🙄 |
@francoisfreitag j'ai revu entièrement les tests pour cette histoire de choix du diagnostic affiché aux prescripteurs différent de celui affiché aux autres utilisateurs. Je ne suis pas 100% convaincu Je me demande si une meilleurs approche ne serait pas de faire d'un côté la vérification du rendu du template Mais bon, ça risque de faire encore plus de tests, donc pas sur que ce soit mieux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je vois quelques questions dans la description de la PR qui mériterait une réponse, notamment :
On ne veut pas d'abord le diag valide ?
Est-ce qu’on veut le diag le plus récent ? Par exemple, un prescripteur fait un diag il y a un an, le GEIQ fait un diag il y a 9 mois. Est-ce qu’on affiche le diag du prescripteur ou celui du GEIQ ?
|
||
|
||
@freeze_time("2024-02-15") | ||
class JobApplicationGEIQEligibilityDetailsTest(TestCase): | ||
@pytest.mark.ignore_unknown_variable_template_error("with_matomo_event") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-il possible de corriger le problème au lieu de l’ignorer ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je dois avouer que je n'ai pas envie de le faire dans cette PR, mais que c'est prévu pour après :)
The eligibility is confirmed as soon as the amount is not null. What we want to know is if it grants eligibility today
@@ -1,13 +1,13 @@ | |||
{% if diagnosis.is_valid %} | |||
{% if diagnosis.eligibility_confirmed %} | |||
{% if diagnosis.is_valid or job_application.state.is_accepted and diagnosis %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% if diagnosis.is_valid or job_application.state.is_accepted and diagnosis %} | |
{% if diagnosis.is_valid or job_application.state.is_accepted %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N'est-il pas possible d'avoir une candidature acceptée vers un GEIQ sans diagnostic associé ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si. Mais même sans diagnostic, je pense qu'on souhaite mettre Éligibilité public prioritaire GEIQ non confirmée
pour une candidature acceptée sans diag ? (mais il faudrait également adapter d'autres else
/elif
du template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est déjà traité alors : on passe dans le else
en bas et à présent on marque Éligibilité public prioritaire GEIQ non confirmée
même si ce n'est pas une entreprise 😎
a07e3dd
to
88b7e6c
Compare
@@ -1,13 +1,13 @@ | |||
{% if diagnosis.is_valid %} | |||
{% if diagnosis.eligibility_confirmed %} | |||
{% if diagnosis.is_valid or job_application.state.is_accepted and diagnosis %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si. Mais même sans diagnostic, je pense qu'on souhaite mettre Éligibilité public prioritaire GEIQ non confirmée
pour une candidature acceptée sans diag ? (mais il faudrait également adapter d'autres else
/elif
du template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heureusement qu’il y a le harnais de test pour tout expliquer aux prochains devs !!
We didn't test the view for job seekers or prescribers...
🤔 Pourquoi ?
Pour permettre de conserver l'information même quand le diagnostic n'est plus valide
Notes pour discussion métier :
employeur et candidat
on prend dans l'ordre de présence
=> tester le cas un diag expiré d'un prescritpeur et un diag valid de la structure
On ne veut pas d'abord le diag valide ?
prescripteur
on prend le diag valide pour ce candidat fait par un presripteur habitilité (s'il existe)
mais on ne prend pas un diag d'un prescripteur habilité expiré ?
sur une candidature acceptée, on n'affiche pas non plus le diag de l'entreprise ?
🍰 Comment ?
🚨 À vérifier
🏝️ Comment tester
💻 Captures d'écran